projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e83bab8
)
ARM:PXA: Correct tick_to_time / us_to_tick to use lldiv
author
Tom Rini
<
[email protected]
>
Thu, 5 Dec 2013 19:48:37 +0000
(14:48 -0500)
committer
Tom Rini
<
[email protected]
>
Fri, 13 Dec 2013 14:16:20 +0000
(09:16 -0500)
Cc: Marek Vasut <
[email protected]
>
Signed-off-by: Tom Rini <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
arch/arm/cpu/pxa/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/pxa/timer.c
b/arch/arm/cpu/pxa/timer.c
index 78d9f3274528a6974d99954cbb09822b8f0b1960..c4717de6a9c4ccdd3d551c1e5acd8016d93f840a 100644
(file)
--- a/
arch/arm/cpu/pxa/timer.c
+++ b/
arch/arm/cpu/pxa/timer.c
@@
-28,12
+28,12
@@
DECLARE_GLOBAL_DATA_PTR;
static unsigned long long tick_to_time(unsigned long long tick)
{
- return
tick * CONFIG_SYS_HZ / TIMER_FREQ_HZ
;
+ return
lldiv(tick * CONFIG_SYS_HZ, TIMER_FREQ_HZ)
;
}
static unsigned long long us_to_tick(unsigned long long us)
{
- return
(us * TIMER_FREQ_HZ) / 1000000
;
+ return
lldiv(us * TIMER_FREQ_HZ, 1000000)
;
}
int timer_init(void)